<template>
    <h3>Key属性添加到v-for中</h3>
    <p v-for="(item, index) of names" :key="index">{{ item }}</p>
</template>
<script>
export default {
    data() {
        return {
            names: ["百战程序员", "尚学堂", "IT"]
        }
    }
}
</script>